@{
    ViewData["Title"] = "Details";
    Layout = "~/Views/Shared/_ManageFormLayout.cshtml";
}

<div class="mdui-container">
    <div class="mdui-row">


        <div class="mdui-col-xs-12 mdui-col-md-6">
            

           
            <div class="mdui-typo-title mdui-p-t-4">关联权限</div>
            @{
                var Strategorys=ViewData["Strategorys"] as List<Eqwww.Domain.Models.SystemManage.StrategoryModel>;
                var Permissions=ViewData["Permissions"] as List<Eqwww.Code.TreeCollapseToggleModel>;
            }
            @if (Strategorys.Any(x => x.IsSuper == true))
            {
                <p class="mdui-text-color-theme">关联策略中有超管策略，用户拥有全部权限。</p>
            }
            else
            {
                <tree-collapse-toggle items="@Permissions" class="mdui-list" mdui-collapse></tree-collapse-toggle>
            }
            
        </div>
    </div>
</div>
